Skip to content

Add preview-only browser Playground sessions - #1789

Merged
chubes4 merged 1 commit into
mainfrom
fix/1743-preview-only-session
Jul 14, 2026
Merged

Add preview-only browser Playground sessions#1789
chubes4 merged 1 commit into
mainfrom
fix/1743-preview-only-session

Conversation

@chubes4

@chubes4 chubes4 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit preview_only: true support to browser Playground sessions.
  • Compile caller-declared runtime dependencies and prepared preview refs without resolving agent/provider inheritance or appending the PHP task runner.
  • Keep browser task and materializer contracts agentic by default.

Contributes to #1743.

How to test

  1. Run npm run test:php-browser-preview-only-session.
  2. Confirm the preview-only blueprint includes its declared plugin, MU plugin, theme, bootstrap, and site artifact steps.
  3. Confirm the preview-only blueprint contains no generated browser runner and its product DTO has a hydratable blueprint ref.
  4. Confirm the default browser session still resolves provider inheritance and includes its runner.
  5. Confirm create-browser-task-contract remains agentic even if a caller supplies preview_only.
  6. Run npm run test:php-browser-contained-site-contract.
  7. Run npm run test:browser-session-public-dto.
  8. Run npm run test:browser-task-builder.
  9. Run npm run build.

Backwards compatibility

This is an additive opt-in field. Existing browser sessions, task contracts, and materializer contracts preserve their agentic behavior.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode
  • Model: openai/gpt-5.6-terra
  • Used for: Implemented and verified an explicit preview-only browser session contract that omits agent/provider runtime setup; Chris reviewed and owns the change.

@chubes4
chubes4 merged commit d06b028 into main Jul 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant